<template>
  <el-row>
  <el-col :sm="12" :lg="6">
    <el-result icon="success" title="支付成功" subTitle="">
      <template slot="extra">
        <el-button type="primary" size="medium">请关闭网页</el-button>
      </template>
    </el-result>
  </el-col>
</el-row>
</template>

<script>

export default {
    data () {
      return {
        

      }
    },
    mounted() {
      console.log(11123244);
      let aaa=window.location.href
      console.log(aaa,25)
      let p = aaa.split('?')[1]
        let params = new URLSearchParams(p)
        console.log(params,28);
        console.log(params.get('out_trade_no'),299) //1
        // console.log(params.get('id'))   //2
      this.$socket.emit("paysuccess",{
          orderid:params.get('out_trade_no')
        
      })
    }
}
</script>

<style>

</style>